const mongoose = require('mongoose')
const Schema = mongoose.Schema

const OrdertSchema = new Schema({
    orderid: {
        type: String
    },
    userid: {
        type: String,
    },
    cart: {
        type: Object
    },
    address: {
        type: Object
    },
    buytime: {
        type: String,
    },
    waitpay: {
        type: Boolean,
    },
    done: {
        type: Boolean
    },
    cansel: {
        type: Boolean
    }
})

let ordertModel = mongoose.model('orders', OrdertSchema)
module.exports = ordertModel